package cn.cyl.basic.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor//无参
@AllArgsConstructor//有参
public class PageList<T> {
    //总数量：计算分页栏
    private Integer totals=0;
    //当前页的分页数据：展示当前页数据
    private List<T> data=new ArrayList<>();
}

